using System.Collections;
using System.Collections.Generic;
using UnityEngine;

namespace  MyProject.Persona
{
    public static class Constants
    {
        //启动土狼跳跃
        public static bool EnableJumpGrace = true;

        //重力
        // public static float Gravity = 90f;
        
        public static float halfGravThreshold = 4f; //制空时间阈值
        public static float maxFall = -1f; //最大下落速度
        public static float FastMaxFall = -2f; //快速最大下落速度
        public static float FastMaxAccel = 2f; //快速下落加速度
        //最大移动速度
        public static float MaxRun = 9f;
        //Hold情况下的最大移动速度 好像是爬墙状态下
        // public static float HoldingMaxRun = 7f;
        
        //空气阻力
        public static float AirMult = 0.65f;
        //移动加速度
        public static float RunAccel = 100f;
        //移动减速度
        public static float RunReduce = 40f;

        #region 跳跃相关

        public static float JumpSpeed = 7.5f; //跳跃最大速度
        public static float VarJumpTime = 0.2f;//跳跃按键所按最长时间，与跳跃高度有关
        public static float JumpBoost = 4f; //退离墙壁的力
        public static float JumpGraceTime = 0.11f; //土狼时间

        public static float JumpInputAdvance = 1f;
        public static float AdvanceDis = 90f; //可供预输入检测的距离

        #endregion

        #region 人格切换相关

        public static float switchPersonaTime = 1f;

        #endregion

        #region 冲刺相关

        public static float dashForce = 10f;
        public static float dashTime = 0.3f;
        public static float dashCoolDownTime = 3f;

        #endregion
    }
}
